package com.thesis.manage.service.impl;

import com.thesis.manage.common.service.impl.BaseServiceImpl;
import com.thesis.manage.domain.Role;
import com.thesis.manage.mapper.RoleMapper;
import com.thesis.manage.service.RoleService;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.common.Mapper;

import javax.annotation.Resource;

/**
 * @author php
 * @date 2018/2/1
 */
@Service
public class RoleServiceImpl extends BaseServiceImpl<Role> implements RoleService {

    @Resource
    private RoleMapper roleMapper;

    @Override
    protected Mapper<Role> getMapper() {
        return roleMapper;
    }

    @Override
    protected Class<Role> getEntityClass() {
        return Role.class;
    }
}
